package com.oauth.service.application.beans;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ApplicationServiceBean {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long key;
	
	
	@Persistent
	private String name;
	
	@Persistent
	private String addUrl;
	
	
	public ApplicationServiceBean(String pName, String pAddUrl) {
		super();
		name = pName;
		addUrl = pAddUrl;
	}

	/**
	 * @return the key
	 */
	public Long getKey() {
		return key;
	}

	/**
	 * @param pKey the key to set
	 */
	public void setKey(Long pKey) {
		key = pKey;
	}

	public String getName() {
		return name;
	}

	public void setName(String pName) {
		name = pName;
	}

	public String getAddUrl() {
		return addUrl;
	}

	public void setAddUrl(String pAddUrl) {
		addUrl = pAddUrl;
	}

	
			
	
}
